package com.module.home.action;

import com.orhanobut.logger.Logger;

import javax.inject.Inject;

import ren.nearby.http.di.HttpApi;

/**
 * Created by Administrator on 2018/5/14 0014.
 */

public class FragmentActAction implements FragmentContract.Action {
    FragmentContract.View mView;  // 需要抽象出来
    @Inject
    HttpApi mApi;

    @Inject
    FragmentActAction() {
//        mApi = api;
    }

    @Override
    public void takeView(FragmentContract.View view) {
        Logger.e(mView == null ? " mView =  0 " : " mView = 1 ");
        Logger.e(mApi == null ? " mApi =  0 " : " mApi = 1 ");
        if (mApi != null) {
            mApi.dowApk();
        }
    }

    @Override
    public void dropView() {
        mView = null;
    }

    @Override
    public void test() {
        Logger.e("test");
    }
}
